﻿using MvcContrib.PortableAreas;

namespace nanoCMS.Forum.WebUI
{
	public class ForumRegistration : PortableAreaRegistration
	{
		public override string AreaName
		{
			get { return "Forum"; }
		}

		public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus)
		{
			bus.Send(new PortableAreaStartupMessage(AreaName));
			context.MapRoute("ForumDefault", "Forum/{controller}/{action}", new { controller = "ForumAdmin", action = "Index" });
			RegisterAreaEmbeddedResources();
		}
	}
}
